export const TokenKey = 'accessToken';

// 获取
export function getToken() {
  return localStorage.getItem(TokenKey)
}
// 判断是否存在
export function checkToken(){
  let token = getToken();
  return token !== null && token !== undefined && token !== '';
}
// 设置
export function setToken(token) {
  return localStorage.setItem(TokenKey, token)
}
// 删除
export function removeToken() {
  return localStorage.removeItem(TokenKey)
}
